package com.vm.utils;

import android.app.Application;
import android.content.Context;
import android.net.ConnectivityManager;

/**   
 *  
 * @ProjectName:  [WeiMai] 
 * @Author:       [kent.wang]
 * @CreateDate:   [2015年2月28日 上午9:45:18]   
 * @Version:      [v1.0] 
 *    
 */
public class NetworkUtil extends Application{

	public boolean isOpenNetwork() {  
	    
	    ConnectivityManager connManager = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);  
	    if(connManager.getActiveNetworkInfo() != null) {  
	        return connManager.getActiveNetworkInfo().isAvailable();  
	    }  
	  
	    return false;  
	}  

}
